<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@page import="java.util.*"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html:html>
<head>
<title>More Degrees</title>
</head>
<body>
<% 
	String major = request.getParameter("major");
	String otherMajor = request.getParameter("othermajor");
		if (!otherMajor.isEmpty())
			major = otherMajor;
%>

	<br>
	<bean:write name="degreeForm" property="location" scope="session" />
	<bean:write name="degreeForm" property="university" scope="session" />
	<br>
	<bean:write name="degreeForm" property="month" scope="session" />
	<bean:write name="degreeForm" property="year" scope="session" />
	<br>
	<bean:write name="degreeForm" property="gpa" scope="session" />
	<br>
	<bean:write name="degreeForm" property="title" scope="session" />
	<br>
	<bean:write name="degreeForm" property="major" "<%=major%>" />
	<html:form action="/degree" method="POST">
	
	<table>
		<tr>
		<html:form action="/NextDegree">
		<td><html:submit value="Submit Next Degree" /></td>
		</html:form>
		<html:form action="/DoneDegree">
		<td><html:submit value="Done" /></td>
		</html:form>
		</tr>
	</table>

<!-- 	
	<input type="button" value="Submit Next Degree"
		onClick="location.href='location.jsp'">
	<input type="button" value="Done"
		onClick="location.href='specialization.jsp'"> 
-->

</html:form>
</body>
</html:html>